package model

import (
	"gorm.io/gorm"
)

type User struct {
	Id        uint           `gorm:"column:id;type:bigint UNSIGNED;primaryKey;not null;" json:"id"`
	Account   string         `gorm:"column:account;type:varchar(30);comment:账号;not null;" json:"account"`             // 账号
	Password  string         `gorm:"column:password;type:char(32);comment:密码;not null;" json:"password"`              // 密码
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);comment:删除时间;default:NULL;" json:"deleted_at"` // 删除时间
}

func (u *User) TableName() string {
	return "user"
}
